home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 4
/
The Arsenal Files 4 (Arsenal Computer).ISO
/
casm
/
au116-as.exe
/
UTIL
/
THRESH.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-09
|
663b
|
28 lines
#include "..\au.hpp"
/*****************************************************************************/
long check_threshold(AU *au, int threshold, BYTE ignoreSecond)
{
int num_to_process;
au_printf_c(au, 14, " Counting files to process...\n\n");
num_to_process = count_process_files(au);
if (threshold >= 0)
{
if (num_to_process == 0)
{
au_printf_c(au, 4, NOTHING);
exit(0);
}
if (num_to_process > threshold && !ignoreSecond)
{
au_printf_error(au, "Threshold of %d files Exceeded, %d pending process",
threshold, num_to_process);
if (!ask_continue())
exit(0);
}
}
return num_to_process;
}